import request from '@/utils/request'

// 查询收付款单核销列表
export function listPaymentCheck(query) {
  return request({
    url: '/settle/paymentCheck/list',
    method: 'post',
    data: query
  })
}

// 查询收付款单核销详细
export function getPaymentCheck(id) {
  return request({
    url: '/settle/paymentCheck/' + id,
    method: 'get'
  })
}

// 新增收付款单核销
export function addPaymentCheck(data) {
  return request({
    url: '/settle/paymentCheck/add',
    method: 'post',
    data: data
  })
}

// 修改收付款单核销
export function updatePaymentCheck(data) {
  return request({
    url: '/settle/paymentCheck/update',
    method: 'post',
    data: data
  })
}

// 删除收付款单核销
export function delPaymentCheck(id) {
  return request({
    url: '/settle/paymentCheck/delete/' + id,
    method: 'post'
  })
}
